#include "stm32f10x.h"     
#include "rotary-encoder.h"
#include "oled.h"

int16_t Num;
int main()
{
/*模块初始化*/
OLED_Init(); //OLED初始化
RotaryEncoder_Init(); //旋转编码器初始化
OLED_ShowString(1, 1, "Num:");
while (1){
Num += Get_CountSensor();//获取自上此调用此函数后，旋转编码器的增量值，并将增量值
//加到Num上
OLED_ShowSignedNum(1, 5, Num, 5);
}
}
















